#ifndef COMPUTETHREAD_H
#define COMPUTETHREAD_H

#include <QThread>
#include <QVector>
#include <QString>
#include <QSemaphore>

#include "digit.h"

class ComputeThread : public QThread
{
public:
    ComputeThread(QString n, QVector< QVector<Digit> > &t, int sleep, QSemaphore *s);
    void run();

private:
    QVector< QVector<Digit> > &triangle;
    QString name;
    int sleepTime;
    QSemaphore *semaphore;
};

#endif // COMPUTETHREAD_H
